Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/#111 news notice UI #116

Merged
merged 18 commits into from
Nov 24, 2024
Merged

Feature/#111 news notice UI #116

merged 18 commits into from
Nov 24, 2024

Conversation

Eonji-sw
Copy link
Member

โœ… ๐—–๐—ต๐—ฒ๐—ฐ๐—ธ-๐—Ÿ๐—ถ๐˜€๐˜

  • mergeํ•  ๋ธŒ๋žœ์น˜์˜ ์œ„์น˜๋ฅผ ํ™•์ธํ•ด ์ฃผ์„ธ์š”(mainโŒ/developโญ•)
  • ๋ฆฌ๋ทฐ๊ฐ€ ํ•„์š”ํ•œ ๊ฒฝ์šฐ ๋ฆฌ๋ทฐ์–ด๋ฅผ ์ง€์ •ํ•ด ์ฃผ์„ธ์š”
  • P1 ๋‹จ๊ณ„์˜ ๋ฆฌ๋ทฐ๋Š” ํ•„์ˆ˜๋กœ ๋ฐ˜์˜ํ•ฉ๋‹ˆ๋‹ค.
  • Approve๋œ PR์€ assigner๊ฐ€ ๋จธ์ง€ํ•˜๊ณ , ์ˆ˜์ • ์š”์ฒญ์ด ์˜จ ๊ฒฝ์šฐ ์ˆ˜์ • ํ›„ ๋‹ค์‹œ push๋ฅผ ํ•ฉ๋‹ˆ๋‹ค.

๐Ÿ“Œ ๐—œ๐˜€๐˜€๐˜‚๐—ฒ๐˜€

๐Ÿ“Ž๐—ช๐—ผ๐—ฟ๐—ธ ๐——๐—ฒ๐˜€๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜๐—ถ๐—ผ๐—ป

  • ๊ณต์ง€์‚ฌํ•ญ ํƒญ UI ๊ตฌํ˜„

๐Ÿ“ท ๐—ฆ๐—ฐ๐—ฟ๐—ฒ๐—ฒ๐—ป๐˜€๐—ต๐—ผ๐˜

2024-11-24.5.41.04.mov

๐Ÿ’ฌ ๐—ง๐—ผ ๐—ฅ๐—ฒ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ๐˜€

๊ท€์ฐฎ์•„์„œ ์˜์ƒ ์•ˆ์ž๋ฅด๊ณ  ํ–ˆ๋”๋‹ˆ ์ข€ ๊ธธ์–ด์—ฌ..

@Eonji-sw Eonji-sw added โญ [FEAT] ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ๊ตฌํ˜„ ๐Ÿ’Ÿย [UI] UI ์ž‘์—… xml ํŒŒ์ผ ๊ฑด๋“ค๋ฉด ์š”๊ฑฐ ๐Ÿฐ ์–ธ์ง€ ๊ธฐ๋งŒ์ง€ โ˜• [COMPOSE] ์ปดํฌ์ฆˆ ui labels Nov 24, 2024
@Eonji-sw Eonji-sw self-assigned this Nov 24, 2024
Copy link
Member

@chanubc chanubc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋Œ€์ถฉ ์„ค๋ช…๋“œ๋ ธ๋Š”๋ฐ ์—„์ฒญ ์ž˜ํ•˜์…จ๋„ค์š” ์งฑ!

Comment on lines +34 to +36
val parentNavController = requireParentFragment().findNavController()
val action = NewsFragmentDirections.actionNavigationNewsToNavigationNewsDetail(notice)
parentNavController.navigate(action)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์™€ parent๊ฑฐ ๊ฐ€์ ธ์˜ค๋Š” ๋ฒ•์€ ์ฒ˜์Œ์•Œ์•˜๋„ค์š” ์งฑ!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํ—ˆ๋•์ด๋‹ค๊ฐ€.. ์‚ฌ์šฉํ•ด๋ณด์•˜์Šด๋‹ค

@RequiresApi(Build.VERSION_CODES.O)
@Composable
fun NewsNoticeItem(context: Context, data: NewsInfoModel, navigateToDetail: (NewsInfoModel) -> Unit) {
Box(modifier = Modifier.clickable { navigateToDetail(data) }) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p1 : ์šฐ๋ฆฌ๋Š” ๋”ฐ๋กœ ๋ฆฌํ”Œ ํšจ๊ณผ๊ฐ€ ์—†๊ธฐ ๋•Œ๋ฌธ์—

package com.teamwable.designsystem.extension.modifier

์—ฌ๊ธฐ์— noRippleDebounceClickable ํ™•์žฅํ•จ์ˆ˜๋ฅผ ๋งŒ๋“ค์—ˆ๋Š”๋ฐ ์ด๊ฑฐ ์‚ฌ์šฉํ•ด์ฃผ์„ธ์š”!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ฃ„์†กํ•ฉ๋‹ˆ๋‹ค ์ด๊ฑธ ์“ฐ๋ฉด pointerInteropFilter๊ฐ€ lazycolumn์˜ ์Šคํฌ๋กค ๋ชจ์…˜์„ ๋ฐฉํ•ดํ•ด์„œ ๋ฌด์กฐ๊ฑด ํ„ฐ์น˜๋งŒ ๋˜๊ณ  ๋‹ค์Œํ™”๋ฉด์œผ๋กœ ๋„˜์–ด๊ฐ€๊ฒŒ ๋˜๋„ค์š” noRippleClickable์ด๋‚˜ ๊ทธ๋ƒฅ clickable ์จ๋„ ์ข‹์„๊ฒƒ ๊ฐ™์•„์š”!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์˜คํ˜ธ๋ผ ๊ทธ๋ ‡๊ตฐ์š”..

) {
val context = LocalContext.current

viewModel.dummyNotice.apply {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p1 :์ด๊ฑด ์ถ”ํ›„์— ์„œ๋ฒ„ํ†ต์‹ ํ•˜๋ฉด์„œ state๋ฅผ collectํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ๋ฐ”๊พธ์–ด์ฃผ์„ธ์š”!

    val showEmptyText by viewModel.showDialog.collectAsStateWithLifecycle()

์ด๋Ÿฐ์‹์œผ๋กœ์š”! ๋„ค์ด๋ฐ์€ ์•Œ์ž˜๋”ฑ๊ฐˆ์„ผ์œผ๋กœ~

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ง€๊ธˆ ๊ตฌ์กฐ์—์„œ๋Š” List์˜ ๊ฐ’์„ ์ง์ ‘๊ฐ€์ ธ์˜ค๋Š” ์‹์ธ๋ฐ
์ปดํฌ์ €๋ธ”์—์„œ๋Š” List์˜ ๊ฒฝ์šฐ unstatble๋กœ ๊ฐ„์ฃผ( ์™œ๋ƒ๋ฉด list๋Š” ๊ฐ’์„ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์žˆ์œผ๋‹ˆ๊นŒ MutableList๋ฅผ ๋„ฃ์„์ˆ˜ ์žˆ๊ธฐ๋•Œ๋ฌธ) ๋˜๊ธฐ์— ๋ฆฌ์ปดํฌ์ง€์…˜์˜ ์›์ธ์ด ๋ฉ๋‹ˆ๋‹ค!
image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ImmutableList์™€ PersistentList๋ฅผ ์‚ฌ์šฉ๊ฐ€๋Šฅํ•˜๋„๋ก ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์„ค์น˜ ํ•ด๋†“์•˜์Šต๋‹ˆ๋‹ค~

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋„น ์„œ๋ฒ„ํ†ต์‹  ํ•  ๋•Œ ์ ์šฉํ•ด๋ณผ๊ฒŒ์šฉ ^.<

) {
Box(modifier = Modifier.fillMaxSize()) {
LazyColumn(modifier = Modifier.fillMaxSize()) {
items(notices) { notice ->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p1 :

Suggested change
items(notices) { notice ->
items(items = notices, key = {item -> item.id}) {

์ด๋Ÿฐ์‹์œผ๋กœ LazyColumn์—์„œ๋Š” key๋ฅผ ๋ช…์‹œํ•ด์ฃผ์–ด์•ผ ์Šคํฌ๋กค ์‹œ์— ์žฌ์‚ฌ์šฉ ๋˜๋Š” ์ปดํฌ์ €๋ธ” ๋ทฐ(item)์ด stable๋กœ ์ธ์‹ํ•˜๊ณ  ๋ฆฌ์ปดํฌ์ง€์…˜์„ ์œ ๋ฐœํ•˜์ง€ ์•Š๋Š” ๊ฒƒ์œผ๋กœ ์•Œ๊ณ  ์ž‡์–ด์š”!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๊ทธ๋ฆฌ๊ณ  ์—ฌ๊ธฐ์„œ Box์™€ LazyColuunm๋ชจ๋‘ fillMaxSize()๊ฐ€ ๋˜์–ด์žˆ๋Š”๋ฐ fillMaxWidth()๋ฅผ ์žฌ์‚ฌ์šฉ๊ฐ€๋Šฅํ•œ ์ปดํฌ์ €๋ธ”์— ์ ์šฉํ•˜๊ฒŒ ๋˜๋ฉด ์žฌ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์ปดํฌ์ €๋ธ”์€ ๋ถ€๋ชจ๋ ˆ์ด์•„์›ƒ์˜ ํ•ญ์ƒ ์ „์ฒด ๋„ˆ๋น„๋ฅผ ์ฐจ์ง€ํ•˜๋ฏ€๋กœ ์˜†์œผ๋กœ ๋ฐฐ์น˜ํ•œ๋‹ค๊ฑฐ๋‚˜, ํฌ๊ธฐ๋ฅผ ์กฐ์ • ๊ฐ€๋Šฅํ•œ ์œ ์—ฐ์„ฑ์„ ์žƒ์„ ์ˆ˜ ์ž‡์–ด์š”!

์žฌ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์ปดํฌ์ €๋ธ”์—์„œ๋Š” ์ตœ์ƒ์œ„ ๋ ˆ๋ฒจ์— ํฌ๊ธฐ๋ฅผ ๊ฐ•์ œํ•˜๋Š” Modifier๋ฅผ ์ƒ๋žตํ•˜๊ณ , ํฌ๊ธฐ ๊ด€๋ จ Modifier๋Š” ํ˜ธ์ถœ ์‹œ์ ์— ์™ธ๋ถ€์—์„œ ์ œ๊ณตํ•˜๋Š”๊ฒƒ์ด ๋‚ซ์Šต๋‹ˆ๋‹ค.

image
image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋ฐฐ์ฐจ์€์šฐ ๊ทธ๋Š” ์ด์ œ ์ปดํฌ์ฆˆ ์žฅ์ธ์ด ๋˜์–ด ๋ฒ„๋ ธ๋‹ค ..

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์•„ ๋งž์•„์š” 34๊ธฐ์— ๋“ค์—ˆ๋˜ ๊ธฐ์–ต์ด ์žˆ๋Š”๋ฐ
์ „ ๋ถˆํ•„์š”ํ•œ ์ปดํฌ์ง€์…˜์ด ๋„ˆ๋ฌด ์‹ซ์–ด์š”... ๊ทผ๋ฐ ์ค„์ด๋Š”๊ฒŒ ๋„ˆ๋ฌด ๋นก์…ˆ ^^;
์ข‹์€ ์ž๋ฃŒ ๊ฐ์‚ฌํ•ด์šฉ ๊ตฟ

) {
Box(modifier = Modifier.fillMaxSize()) {
LazyColumn(modifier = Modifier.fillMaxSize()) {
items(notices) { notice ->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋ฐฐ์ฐจ์€์šฐ ๊ทธ๋Š” ์ด์ œ ์ปดํฌ์ฆˆ ์žฅ์ธ์ด ๋˜์–ด ๋ฒ„๋ ธ๋‹ค ..

Copy link
Member

@chanubc chanubc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ˆ˜๊ณ ํ–ˆ์Šด๋‘ฅ!

@Eonji-sw Eonji-sw merged commit aa91526 into develop Nov 24, 2024
1 check passed
@Eonji-sw Eonji-sw deleted the feature/#111-news-notice-ui branch November 24, 2024 17:41
@sohyun127
Copy link
Collaborator

๊ณ ์ƒํ–ˆ๋‹ค !!! LGTM ๊ธฐ๋จผ์ง€ ๐Ÿ’ฏ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
โ˜• [COMPOSE] ์ปดํฌ์ฆˆ ui โญ [FEAT] ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ๊ตฌํ˜„ ๐Ÿฐ ์–ธ์ง€ ๊ธฐ๋งŒ์ง€ ๐Ÿ’Ÿย [UI] UI ์ž‘์—… xml ํŒŒ์ผ ๊ฑด๋“ค๋ฉด ์š”๊ฑฐ
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] : ์†Œ์‹ ๊ณต์ง€์‚ฌํ•ญ ํƒญ UI ๊ตฌํ˜„
3 participants